import 'pages/add/index.dart';
import 'pages/pay/index.dart';
import 'pages/record/index.dart';
import 'package:get/get.dart';
import 'pages/settings/index.dart';
import 'pages/analysis/index.dart';
import 'pages/home/index.dart';

/// 页面管理路由表
abstract class Routers {
  static String homePage = '/home';
  static String settingPage = '/setting';
  static String payPage = '/pay';
  static String recordTypePage = '/record_type';
  static String addRecordPage = '/add';
  static String analysisPage = '/analysis';

  static final routes = [
    GetPage(
        name: homePage,
        page: () => const MyHomePage(),
        transition: Transition.fade),
    GetPage(name: settingPage, page: () => SettingsPage()),
    GetPage(name: payPage, page: () => PayPage()),
    GetPage(name: recordTypePage, page: () => RecordTypePage()),
    GetPage(name: analysisPage, page: () => AnalysisPage()),
    GetPage(
        name: addRecordPage,
        page: () => AddRecordPage(),
        transition: Transition.downToUp),
  ];
}
